home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Apple Guide / Engineering / Context Check Modules / Standard CC Modules / System Context / System.h < prev    next >
Encoding:
Text File  |  1994-05-03  |  2.2 KB  |  86 lines  |  [TEXT/MPS ]

  1. //    Copyright:    © 1993 Apple Computer, Inc. All rights reserved.
  2. //    Author:        Scott Searle (original)
  3. //                Victor J. Hnyp (extensions)
  4. //    Date:        18-Mar-93
  5.  
  6. // Revisions
  7. //
  8. //    05/01/94    JJ    2.06    Add Str255 parameter to fileSharing struct, used instaed of hardcoded filename
  9. //
  10. //    03/18/93    VJH    2.05    Compensated for unused StringSpec in isGestalt check
  11. //
  12. //    03/11/93    VJH    2.04    Reimplemented isVideoHWBitDepth the way it was originally designed
  13. //
  14. //    02/08/93    VJH    2.03    Fixed:    DoGestaltCheck, DoNameCheck, DoHWBitDepthCheck and DoNumMonitorsCheck
  15. //
  16. //    01/18/93    VJH    2.02    Fixed:    Gestalt and menu checks
  17.  
  18. #ifndef __SYSTEM__
  19. #define __SYSTEM__
  20.  
  21. #ifndef __UTILITY__
  22. #include "Utility.h"
  23. #endif
  24.  
  25.  
  26. typedef struct
  27. {
  28.     MenuHandle            menuHdl;
  29.     short                menuLeft;
  30. } MenuRec, *MenuRecPtr, **MenuRecHdl;
  31.  
  32. typedef struct
  33. {
  34.     short                lastMenu;
  35.     short                lastRight;
  36.     short                mbResID;
  37.     char                startMenuRecList;
  38. } MenuListRec, *MenuListRecPtr, **MenuListRecHdl;
  39.  
  40.  
  41.  
  42. //    This defines the MenuItemExists, MenuItemEnabled, MenuItemDisabled, and MenuItemMarked Contexts
  43. typedef struct
  44. {
  45.     long                mSelector;                    // System Selector
  46.     long                filler1;                    // not used
  47.     StringSpec            menuTitle;                    // Title
  48.     StringSpec            menuItem;                    // Item
  49. } MenuIsAvailable, *MenuIsAvailablePtr;
  50.  
  51. //    This defines the GestaltCheck Context
  52. typedef struct
  53. {
  54.     long                filler1;                    // System Selector
  55.     long                gestaltSelector;
  56.     long                compareSelector;
  57.     short                filler2;                    // Blank StringSpec area
  58.     long                value;
  59. } GestaltState, *GestaltStatePtr;
  60.  
  61. //    This defines the MonitorBitDepth, VideoHWBitDepth, and NumMonitors Context checks
  62. typedef struct
  63. {
  64.     long                filler1;                    // System Selector
  65.     long                compareSelector;
  66.     long                compareValue;
  67. } BitDepthState, *BitDepthStatePtr;
  68.  
  69. //    This defines the isFileSharing, isGuestAccess Context
  70. typedef struct
  71. {
  72.     long                filler1;                    // System Selector
  73.     long                compareValue;
  74.     Str255                filename;                    //    Used to locate the "Users & Groups Data File"
  75. } FileSharing, *FileSharingPtr;
  76.  
  77. //    This defines the isComputerNamed Context
  78. typedef struct
  79. {
  80.     long            filler1;                        // System Selector
  81.     long            filler2;                        // Not used
  82.     StringSpec        computerName;                    // Compare selector and value
  83. } ComputerNameInfo, *ComputerNameInfoPtr;
  84.  
  85. #endif
  86.